/**
 *  Created by zlgb on 2021-03-23 13:55:02
 *  ------------------修改记录-------------------
 *  修改人      修改日期                 修改目的
 *  zlgb        2021-03-23               创建
 **/
import api from 'src/plugins/http/api';
import httpServer from 'src/plugins/http';

export function getImgVerify(o:IO) {
    return httpServer({ 'url': api.getImgVerify,...o.opts }, o.data || { 'time': Date.now() });
}

export function login(o:IO) {
    return httpServer({ 'url': api.login,...o.opts }, o.data || {});
}

export function logout(o:IO) {
    return httpServer({ 'url': api.logout,...o.opts }, o.data || {});
}

export function modifyUser(o:IO) {
    return httpServer({ 'url': api.modifyUser,...o.opts }, o.data || {});
}

export function modifyPwd(o:IO) {
    return httpServer({ 'url': api.modifyPwd,...o.opts }, o.data || {});
}

export function getSecret(o:IO) {
    return httpServer({ 'url': api.getSecret, ...o.opts }, o.data || { 'time': Date.now() });
}

